package com.ywk.http2.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author zbh
 * @Date 2023/5/5
 */

@RestController
@RequestMapping("/http2")
public class Http2Controller {

    @GetMapping("/api")
    public String api(HttpServletRequest httpServletRequest) {
        String scheme = httpServletRequest.getScheme();
        return scheme + " ===>>>http2.0 返回结果";
    }
}
